package com.xhl.doeverything.redis;//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

/**
 * 分布式锁
 */

public abstract class AbstractDistributedLock implements DistributedLock {
    public AbstractDistributedLock() {
    }

    public boolean lock(String key) {
        return this.lock(key, 5000L, 100, 100L);
    }

    public boolean lock(String key, int retryTimes) {
        return this.lock(key, 5000L, retryTimes, 100L);
    }

    public boolean lock(String key, int retryTimes, long sleepMillis) {
        return this.lock(key, 5000L, retryTimes, sleepMillis);
    }

    public boolean lock(String key, long expire) {
        return this.lock(key, expire, 100, 100L);
    }

    public boolean lock(String key, long expire, int retryTimes) {
        return this.lock(key, expire, retryTimes, 100L);
    }
}
